﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

class ExtractingIntegers
{
    static void Main(string[] args)
    {
        string text = @"asdas -123 asd123 asd3 1asdasd";
        
        Regex notNumber = new Regex(@"\s*[a-zA-Z]+[0-9a-zA-Z]*\s");
        Regex negativeNumber = new Regex(@"\b\-[0-9]+\b");
        
        var matches = negativeNumber.Matches(text);
        
        foreach (var match in matches)
        {
            Console.WriteLine(match);
        }
    }
}
